package com.zxy.ziems.server.device.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zxy.btp.mybatis.base.BaseEntity;

/**
 * 通信通道 用来配置通信的
 * @author 10348359
 * @create 2024-03-25 9:28
 */
@TableName("t_channel")
public class ChannelEntity extends BaseEntity {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 通道名称
     */
    private String name;

    /**
     * ip 地址
     */
    private String ip;

    /**
     * 端口
     */
    private Integer port;

    /**
     * 集采地址
     */
    private String collectorId;

    /**
     * 协议
     */
    private String protocolId;

    /**
     * 设备类型Code
     */
    private String deviceTypeCode;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getCollectorId() {
        return collectorId;
    }

    public void setCollectorId(String collectorId) {
        this.collectorId = collectorId;
    }

    public String getProtocolId() {
        return protocolId;
    }

    public void setProtocolId(String protocolId) {
        this.protocolId = protocolId;
    }

    public String getDeviceTypeCode() {
        return deviceTypeCode;
    }

    public void setDeviceTypeCode(String deviceTypeCode) {
        this.deviceTypeCode = deviceTypeCode;
    }
}
